import java.util.ArrayList;


public class Tab implements Waiter {
	
	private ArrayList<Integer> ordersList;
	private Menu menuList = new Menu();
	
	public Tab (ArrayList<Integer> ordersList) {
		this.ordersList=ordersList;
	}
	
	public void display() {
		System.out.println("---------TAB----------");
		for (int i=0; i<ordersList.size(); i++)
			System.out.println(menuList.getDescription(ordersList.get(i)) + " - $" + menuList.getCost(ordersList.get(i)));
		System.out.println("----------------------");
		System.out.println();
	}
}
